package com.qcxk.yuqian.rtu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qcxk.yuqian.rtu.controller.model.query.RtuDTO;
import com.qcxk.yuqian.rtu.controller.model.query.RtuVO;
import com.qcxk.yuqian.rtu.entity.Rtu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qcxk.yuqian.system.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @auther lp
 * @create 2021-11-15 03:21:45
 * @describe mapper类
 */
@Repository
public interface RtuMapper extends BaseMapper<Rtu> {

    Page selectStatusPage(Page page, Rtu item);

    Page selectRtuPage(Page page, Rtu item);
    int  add(Rtu  rtu);
    Rtu findRtu(@Param("rtuNo") String rtuNo);
    List<RtuDTO> findAddress(Rtu rtu);
    List<RtuVO> selectRtuList(RtuVO dto);
    Rtu findRtuById(@Param("id") Long id);
    int  deleteRtuById(@Param("id") Long id);

}
